<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
	<script type="text/javascript" src="/layui/layui.js"></script>
	<script type="text/javascript" src="/js/addactivity.js"></script>
	
	<body>
		<form class="layui-form" action="">
		  <div class="layui-form-item">
		    <label class="layui-form-label">社团编号</label>
		    <div class="layui-input-inline">
		      <input type="text" name="a_id" id="a_id" required  lay-verify="required" placeholder="请输入社团编号" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">活动名称</label>
		    <div class="layui-input-inline">
		      <input type="text" name="ac_name" id="ac_name" required lay-verify="required" placeholder="请输入活动名称" autocomplete="off" class="layui-input">
		    </div>
		  </div>
			<div class="layui-form-item">
				<label class="layui-form-label">活动内容</label>
				<div class="layui-input-inline">
					<input type="text" name="content" id="content" required lay-verify="required" placeholder="请输入活动内容" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">活动地点</label>
				<div class="layui-input-inline">
					<input type="text" name="place" id="place" required lay-verify="required" placeholder="请输入活动地点" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">活动照片地址</label>
				<div class="layui-input-inline">
					<input type="text" name="ac_url" id="ac_url" required lay-verify="required" placeholder="请输入活动照片地址" autocomplete="off" class="layui-input">
				</div>
			</div>
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">活动开始时间</label>
		    <div class="layui-input-inline">
		      <input type="text" name="ac_starttime" id="ac_starttime" readonly="readonly" required lay-verify="required"  autocomplete="off" class="layui-input">
		    </div>
		  </div>
			<div class="layui-form-item">
				<label class="layui-form-label">活动结束时间</label>
				<div class="layui-input-inline">
					<input type="text" name="ac_endtime" id="ac_endtime" readonly="readonly" required lay-verify="required"  autocomplete="off" class="layui-input">
				</div>
			</div>
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">活动开销</label>
		    <div class="layui-input-inline">
		      <input type="text" name="spend" id="spend"  required lay-verify="required"  autocomplete="off" class="layui-input">
		    </div>
		  </div>

			<div class="layui-form-item">
				<label class="layui-form-label">活动状态</label>
				<div class="layui-input-inline">
					<input type="text" name="ac_examine" id="ac_examine" placeholder="默认为1" required lay-verify="required"  autocomplete="off" class="layui-input">
				</div>
			</div>
		  
		  
		 
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		  </div>
		</form>
		 
		<script>
			$("#ac_examine").val("1");
		//Demo
		layui.use('form', function(){
		  var form = layui.form;
		  
		  //监听提交
		  form.on('submit(formDemo)', function(data){
		    layer.msg(JSON.stringify(data.field));
		    return false;
		  });
		});
		</script>
	</body>
</html>
